package com.goscan2

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Button
import sz.szsmk.citizencard.ZHSZInit
import sz.szsmk.citizencard.ui.newversion.activity.CheckAuthActivity
import sz.szsmk.citizencard.ui.newversion.activity.ScanQRCodeActivity
import sz.szsmk.citizencard.ui.newversion.config.Constants
import sz.szsmk.citizencard.util.ACache
import sz.szsmk.citizencard.util.JumpUtils

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_simple)

        val btn1 = findViewById<Button>(R.id.btn_t1)
        btn1.setOnClickListener {

//            ZHSZInit.jumpScan(this,"399365465417712616","13606251927")

            ZHSZInit.jumpScan(this,"409395373268796392","18626216505")



//            ACache.get(this).put("access_token","1cb3b500e73c134d81fd2a7cbd3e8b7f")

//            Log.e("jump", ACache.get(this).getAsString("access_token"))
//
//            val intent = Intent(this, CheckAuthActivity::class.java)
//
//            intent.putExtra("userid","399365465417712616")
//            intent.putExtra("phoneNum","13606251927")
//
//            startActivity(intent)

        }



    }
}